/*
 * @Author: 霍格沃兹测试开发学社
 * @Desc: '更多测试开发技术探讨，请访问：https://ceshiren.com/t/topic/15860'
 */

package com.ceshiren.aitestmini.service.impl;

import com.ceshiren.aitestmini.dto.UserDto;
import com.ceshiren.aitestmini.service.UserService;
import com.ceshiren.aitestmini.util.R;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

@Service("user")
@Primary
public class UserServiceImpl implements UserService {
    @Override
    public String  login(UserDto userDto) {
        if(userDto.getUsername().equals("gaigai") && userDto.getPassword().equals("ceshiren.com")){
            return "用户登录成功！用户名：{"+userDto.getUsername()+"}，密码为：{"+userDto.getPassword()+"}";

        }else {
            return "用户登录失败！用户名：{"+userDto.getUsername()+"}，密码为：{"+userDto.getPassword()+"}";

        }

    }

    @Override
    public String registerAndParam(UserDto userDto, String module, String desc, String age) {
        return null;
    }
}
